package com.session01.am;

import java.util.Scanner;

public class Persion {
    String userName = "";
    Scanner input = new Scanner(System.in);

    public int showFist() {
        System.out.println("请输入你的出拳：1.剪刀 2.石头 3.布");
        int userFist = input.nextInt();
        switch (userFist) {
            case 1:
                System.out.println("你出拳：剪刀");
                break;
            case 2:
                System.out.println("你出拳：石头");
                break;
            case 3:
                System.out.println("你出拳：布");
        }
        return userFist;
    }
}
